import http from "@/utils/request";

//查询新闻列表
export function getNewsListAPI() {
	return http.request({
		url: "/news/list",
		method: "get",
	});
}

//根据id获取新闻列表详情
export function getNewsDetailAPI(id) {
	return http.request({
		url: "/news/detail",
		method: "get",
		params: {
			id
		}
	});
}